﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using NextInventory.Common;

namespace NextInventory.Model.User
{
    public class UserModel : BaseViewModel
    {
        public int ID { get; set; }

        [Required(ErrorMessage="First Name is required.")]
        [Display(Name="First Name:")]
        public string FirstName { get; set; }

        [Required(ErrorMessage = "Last Name is required.")]
        [Display(Name = "Last Name:")]
        public string LastName { get; set; }
        
        [DataType(DataType.EmailAddress)]
        public string Email { get; set; }

        [StringLength(50, ErrorMessage = "User name muset be greater than 4 and less than 50 characters.", MinimumLength = 4)]
        public string Username { get; set; }
        
    }
}